package com.ttc.ssm.po;

import com.ttc.ssm.utils.DateUtils;

import java.util.Date;

/**
 * Created by 58296 on 2016/7/29.
 */
public class Resume {
    private Integer resume_id;
    private String serial_num;
    private Integer customer_id;
    private String realname;
    private String sex;
    private Integer people_id;
    private Date birthday;
    private Integer origin_city_id;
    private Integer live_city_id;
    private Integer industry_id;
    private Integer work_year;
    private Integer expect_job_type_id;
    private String expect_job;
    private Integer expect_city_id;
    private Integer salary_type_id;
    private Integer degree_id;
    private String comment;
    private String evaluation;
    private String attachment;
    private Date date_added;
    private Date date_modified;

    private Customer customer;
    private People people;
    private City origin_city;
    private City live_city;
    private Industry industry;
    private JobType expect_job_type;
    private City expect_city;
    private SalaryType salary_type;
    private Degree degree;

    private String birthday_string;
    private String date_added_string;
    private String date_modified_string;
    private int delivery_status;
    private int delivery_id;

    public int getDelivery_status() {
        return delivery_status;
    }

    public void setDelivery_status(int delivery_status) {
        this.delivery_status = delivery_status;
    }

    public int getDelivery_id() {
        return delivery_id;
    }

    public void setDelivery_id(int delivery_id) {
        this.delivery_id = delivery_id;
    }

    public String getDate_added_string() {
        if (date_added!=null) {
            try {
                return DateUtils.dateToString(date_added);
            } catch (Exception e) {
                return null;
            }
        }
        return null;
    }

    public void setDate_added_string(String date_added_string) {
        this.date_added_string = date_added_string;
    }

    public String getDate_modified_string() {
        if (date_modified!=null) {
            try {
                return DateUtils.dateToString(date_modified);
            } catch (Exception e) {
                return null;
            }
        }
        return null;
    }

    public void setDate_modified_string(String date_modified_string) {
        this.date_modified_string = date_modified_string;
    }

    public String getBirthday_string() {
        if(birthday!=null) {
            java.text.DateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd");
            birthday_string = format1.format(birthday);

        }
        return birthday_string;
    }

    public Integer getDegree_id() {
        return degree_id;
    }

    public void setDegree_id(Integer degree_id) {
        this.degree_id = degree_id;
    }

    public Degree getDegree() {
        return degree;
    }

    public void setDegree(Degree degree) {
        this.degree = degree;
    }

    public void setBirthday_string(String birthday_string) {
        this.birthday_string = birthday_string;
    }

    public Integer getResume_id() {
        return resume_id;
    }

    public void setResume_id(Integer resume_id) {
        this.resume_id = resume_id;
    }

    public String getSerial_num() {
        return serial_num;
    }

    public void setSerial_num(String serial_num) {
        this.serial_num = serial_num;
    }

    public Integer getCustomer_id() {
        return customer_id;
    }

    public void setCustomer_id(Integer customer_id) {
        this.customer_id = customer_id;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getPeople_id() {
        return people_id;
    }

    public void setPeople_id(Integer people_id) {
        this.people_id = people_id;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getLive_city_id() {
        return live_city_id;
    }

    public void setLive_city_id(Integer live_city_id) {
        this.live_city_id = live_city_id;
    }

    public Integer getOrigin_city_id() {
        return origin_city_id;
    }

    public void setOrigin_city_id(Integer origin_city_id) {
        this.origin_city_id = origin_city_id;
    }

    public Integer getIndustry_id() {
        return industry_id;
    }

    public void setIndustry_id(Integer industry_id) {
        this.industry_id = industry_id;
    }

    public Integer getWork_year() {
        return work_year;
    }

    public void setWork_year(Integer work_year) {
        this.work_year = work_year;
    }

    public Integer getExpect_job_type_id() {
        return expect_job_type_id;
    }

    public void setExpect_job_type_id(Integer expect_job_type_id) {
        this.expect_job_type_id = expect_job_type_id;
    }

    public String getExpect_job() {
        return expect_job;
    }

    public void setExpect_job(String expect_job) {
        this.expect_job = expect_job;
    }

    public Integer getExpect_city_id() {
        return expect_city_id;
    }

    public void setExpect_city_id(Integer expect_city_id) {
        this.expect_city_id = expect_city_id;
    }

    public Integer getSalary_type_id() {
        return salary_type_id;
    }

    public void setSalary_type_id(Integer salary_type_id) {
        this.salary_type_id = salary_type_id;
    }

    public String getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(String evaluation) {
        this.evaluation = evaluation;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getAttachment() {
        return attachment;
    }

    public void setAttachment(String attachment) {
        this.attachment = attachment;
    }

    public Date getDate_added() {
        return date_added;
    }

    public void setDate_added(Date date_added) {
        this.date_added = date_added;
    }

    public Date getDate_modified() {
        return date_modified;
    }

    public void setDate_modified(Date date_modified) {
        this.date_modified = date_modified;
    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public People getPeople() {
        return people;
    }

    public void setPeople(People people) {
        this.people = people;
    }

    public City getOrigin_city() {
        return origin_city;
    }

    public void setOrigin_city(City origin_city) {
        this.origin_city = origin_city;
    }

    public City getLive_city() {
        return live_city;
    }

    public void setLive_city(City live_city) {
        this.live_city = live_city;
    }

    public Industry getIndustry() {
        return industry;
    }

    public void setIndustry(Industry industry) {
        this.industry = industry;
    }

    public JobType getExpect_job_type() {
        return expect_job_type;
    }

    public void setExpect_job_type(JobType expect_job_type) {
        this.expect_job_type = expect_job_type;
    }

    public City getExpect_city() {
        return expect_city;
    }

    public void setExpect_city(City expect_city) {
        this.expect_city = expect_city;
    }

    public SalaryType getSalary_type() {
        return salary_type;
    }

    public void setSalary_type(SalaryType salary_type) {
        this.salary_type = salary_type;
    }

    @Override
    public String toString() {
        return "Resume{" +
                "resume_id=" + resume_id +
                ", serial_num='" + serial_num + '\'' +
                ", customer_id=" + customer_id +
                ", realname='" + realname + '\'' +
                ", sex='" + sex + '\'' +
                ", people_id=" + people_id +
                ", birthday=" + birthday +
                ", origin_city_id=" + origin_city_id +
                ", live_city_id=" + live_city_id +
                ", industry_id=" + industry_id +
                ", work_year=" + work_year +
                ", expect_job_type_id=" + expect_job_type_id +
                ", expect_job='" + expect_job + '\'' +
                ", expect_city_id=" + expect_city_id +
                ", salary_type_id=" + salary_type_id +
                ", degree_id=" + degree_id +
                ", comment='" + comment + '\'' +
                ", evaluation='" + evaluation + '\'' +
                ", attachment='" + attachment + '\'' +
                ", date_added=" + date_added +
                ", date_modified=" + date_modified +
                ", customer=" + customer +
                ", people=" + people +
                ", origin_city=" + origin_city +
                ", live_city=" + live_city +
                ", industry=" + industry +
                ", expect_job_type=" + expect_job_type +
                ", expect_city=" + expect_city +
                ", salary_type=" + salary_type +
                ", degree=" + degree +
                ", birthday_string='" + birthday_string + '\'' +
                ", date_added_string='" + date_added_string + '\'' +
                ", date_modified_string='" + date_modified_string + '\'' +
                '}';
    }
}
